<html>
    <body>
        <form method="POST" action="CreateObjects.php">
            <?php
                require_once 'DataSet.php';
                $ds = new DataSet();
                $ds->sqlCreate($_POST['table']);
                $ds->Prepare();
                for ($i = 0; $i < $ds->fieldCount();$i++){
                    echo "<br>";
                    echo 'Field: '.$ds->fields($i)->getNome();
                    echo "<br>";
                    echo "Atributo do Objeto: <input name='".$ds->fields($i)->getNome()."' type='text'/>";
                    echo "<br>";
                    echo "<br>";
                }
            ?>
            <input type="hidden" name="table" value="<?php echo $_POST['table'] ?>"/>
            <input type="hidden" name="object" value="<?php echo $_POST['object'] ?>"/>
            <input type="submit" name="enviar" value="Enviar"/>
        </form>
    </body>
</html>
